import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { HomeContainerComponent } from './home';

const routes: Routes = [
  { path: '', component: HomeContainerComponent },
  {
    path: 'my',
    loadChildren: () => import('./my').then((m) => m.MyModule),
  },
  {
    path: 'category',
    loadChildren: () => import('./category').then((m) => m.CategoryModule),
  },
  {
    path: 'chat',
    loadChildren: () => import('./chat').then((m) => m.ChatModule),
  },
  {
    path: 'recommend',
    loadChildren: () => import('./recommend').then((m) => m.RecommendModule),
  },
  {
    path: 'product',
    loadChildren: () => import('./product').then((m) => m.ProductModule),
  },
  {
    path: 'order',
    loadChildren: () => import('./product').then((m) => m.ProductModule),
  },
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule],
})
export class AppRoutingModule {}
